import { AlbumComponent } from './album.component';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AlbumResolveService } from 'src/app/service/router-resolve/album/album-resolve.service';


const routes: Routes = [
  {
    path: '',
    redirectTo: '_'
  },
  {
    path: ':name',
    component: AlbumComponent,
    resolve: {
      storage: AlbumResolveService
    }
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class AlbumRoutingModule { }
